﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;


namespace CalenLoic
{

    public partial class Form1 : Form
    {
        CalendarManager man;
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string uriDelCalendario = textBox1.Text;
            man = new CalendarManager(uriDelCalendario);
            button2.Enabled = true;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            man.refresh();
            man.showAttacks();
        }
    }
}
